package com.njit.mailm.core.service;

import com.njit.mailm.core.bean.Email;
import com.njit.mailm.core.bean.MessageWrap;
import com.njit.mailm.core.bean.Page;

import java.util.List;

/**
 * Created by Administrator on 2016/4/9.
 */
public interface ManagerService {
    /**
     * 将邮件放入回收箱
     * @param ids
     */
    void delete(String[] ids);

    /**
     * 设置已读（未读）
     * @param ids 邮件id数组
     * @param isread 目前邮件状态，true目前为已读
     */
    void setRead(String[] ids,boolean isread);


    List<MessageWrap> listMessageFromTrash(String id);

    int getTotalMessageNumber(String emailAccount);

    int getDeleteNumber(Email email);

    List<MessageWrap> pageListStar(Page p, Email email);

    int getStarTotal(Email email);

    void setStar(boolean setStar, String id);

    List<MessageWrap> pageListTrash(Page p, Email email);

    int getTrashTotal(Email email);

    List<MessageWrap> searchMessage(String searchText, Email email);
}
